import { defineConfig } from '@kubb/core'
import { pluginOas } from '@kubb/plugin-oas'
import { pluginClient } from '@kubb/plugin-client'
import { pluginTs } from '@kubb/plugin-ts'

export default defineConfig({
  name: 'aps-ui',
  root: '.',
  input: {
    path: 'http://localhost:8080/v3/api-docs',
  },
  output: {
    path: './src/api/generated',
    clean: true,
  },
  plugins: [
    pluginOas({}),
    pluginTs({}),
    pluginClient({
      importPath: '@/api/index',
      client: {
        dataReturnType: 'full',
        dataReturnTypeOptions: {
          dataReturnType: 'full',
        },
      },
    }),
  ],
})
